package org.budo.hbase.jdbc.driver;

import java.sql.DatabaseMetaData;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;

import org.budo.hbase.jdbc.driver.statement.SelectStatement;
import org.budo.jdbc.driver.AbstractBudoJdbcConnection;

/**
 * @author lmw
 */
public class BudoHbaseJdbcConnection extends AbstractBudoJdbcConnection {
    @Override
    public Statement createStatement() throws SQLException {
        throw new RuntimeException();
    }

    @Override
    public PreparedStatement prepareStatement(String sql) throws SQLException {
        BudoHbaseJdbcPreparedStatement preparedStatement = new BudoHbaseJdbcPreparedStatement();
        preparedStatement.setJdbcStatement(new SelectStatement());
        preparedStatement.setConnection(this);
        return preparedStatement;
    }

    @Override
    public DatabaseMetaData getMetaData() throws SQLException {
        throw new RuntimeException();
    }
}